package com.qiaofang.applet.common.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author QF2019
 */
@Data
public class BaseDomain implements Serializable {

    private static final long serialVersionUID = -1;

    @Id
    @ApiModelProperty(hidden = true)
    private String id;

    @ApiModelProperty(value = "集团公司code", hidden = true)
    private String corporationCode;

    @ApiModelProperty(value = "公司companyUuid", hidden = true)
    private String companyUuid;

    @ApiModelProperty(value = "城市code", hidden = true)
    private String cityCode;

    @ApiModelProperty(value = "创建人", hidden = true)
    @CreatedBy
    private String createBy;

    @ApiModelProperty(value = "更新人", hidden = true)
    @LastModifiedBy
    private String updateBy;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @CreatedDate
    private Date createTime;

    @ApiModelProperty(value = "更新时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @LastModifiedDate
    private Date updateTime;
}
